<?php /* Smarty version 2.6.26, created on 2015-08-25 11:48:28
         compiled from ../common/right.html */ ?>
		<div id='right'>
		<!--如果用户登陆-->
		<?php if ($_SESSION['uname'] && $_SESSION['uid']): ?>
		<div class='userinfo'>
			<?php $_from = $this->_tpl_vars['login']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['l']):
?>
			<dl>
				<dt>
					<a href="./index.php?c=Member&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
"><img src="<?php echo $this->_tpl_vars['l']['face']; ?>
" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="./index.php?c=Member&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
">
						<b><?php echo $this->_tpl_vars['l']['username']; ?>
</b>
					</a>
					<a href="./index.php?c=Member&a=myLevel&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
">
						<i class='level lv<?php echo $this->_tpl_vars['l']['lv']; ?>
' title='Level <?php echo $this->_tpl_vars['l']['lv']; ?>
'></i>
					</a>
				</dd>
				<dd>金币：<a href="./index.php?c=Member&a=myGold&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
" style="color: #888888;"><?php echo $this->_tpl_vars['l']['point']; ?>
<b class='point'></b></a></dd>
				<dd>经验值：<?php echo $this->_tpl_vars['l']['exp']; ?>
</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href="./index.php?c=Member&a=myAnswer&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
"><?php echo $this->_tpl_vars['l']['answer']; ?>
</a></td>
					<td><a href="./index.php?c=Member&a=myAnswer&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
"><?php echo $this->_tpl_vars['l']['c']; ?>
</a></td>
					<td class='last'><a href="./index.php?c=Member&a=myAsk&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
"><?php echo $this->_tpl_vars['l']['ask']; ?>
</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="./index.php?c=Member&a=myAsk&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
">我提问的</a></li>
				<li><a href="./index.php?c=Member&a=myAnswer&uid=<?php echo $this->_tpl_vars['l']['uid']; ?>
">我回答的</a></li>
			</ul>
			<?php endforeach; endif; unset($_from); ?>
		</div>
		<?php else: ?>
		 <div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div> 
		<?php endif; ?>
	<div class='clear'></div>
	<div class='star'>
		<?php $_from = $this->_tpl_vars['dayStar']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['day']):
?>
		<p class='title'>后盾问答之星</p>
		<span class='star-name'>本日回答问题最多的人</span>
		
			<div class='star-info'>
				<div>
					<a href="./index.php?c=Member&uid=<?php echo $this->_tpl_vars['day']['uid']; ?>
" class='star-face'>
						<img src="<?php echo $this->_tpl_vars['day']['face']; ?>
" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li><a href="./index.php?c=Member&uid=<?php echo $this->_tpl_vars['day']['uid']; ?>
"><?php echo $this->_tpl_vars['day']['username']; ?>
</a></li>
						<i class='level lv<?php echo $this->_tpl_vars['day']['lv']; ?>
' title='Level <?php echo $this->_tpl_vars['day']['lv']; ?>
'></i>
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span><?php echo $this->_tpl_vars['day']['s']; ?>
</span></li>
					<li>采纳率：<span><?php echo $this->_tpl_vars['day']['c']; ?>
</span></li>
				</ul>
			</div>
		<?php endforeach; endif; unset($_from); ?>
		<span class='star-name'>历史回答问题最多的人</span>
		<?php $_from = $this->_tpl_vars['historyStar']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['h']):
?>
		<div class='star-info'>
			<div>
				<a href="./index.php?c=Member&uid=<?php echo $this->_tpl_vars['h']['uid']; ?>
" class='star-face'>
					<img src="<?php echo $this->_tpl_vars['h']['face']; ?>
" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li><a href="./index.php?c=Member&uid=<?php echo $this->_tpl_vars['h']['uid']; ?>
"><?php echo $this->_tpl_vars['h']['username']; ?>
</a></li>
					<i class='level lv<?php echo $this->_tpl_vars['h']['lv']; ?>
' title='Level <?php echo $this->_tpl_vars['h']['lv']; ?>
'></i>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span><?php echo $this->_tpl_vars['h']['answer']; ?>
</span></li>
				<li>采纳率：<span><?php echo $this->_tpl_vars['h']['c']; ?>
</span></li>
			</ul>
		</div>
		<?php endforeach; endif; unset($_from); ?>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>帮助过的人数</li>
			</ul>
			<ul class='ul-list'>
			<?php $_from = $this->_tpl_vars['helpPeople']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['h']):
?>	
				<li>
					<a href="./index.php?c=Member&uid=<?php echo $this->_tpl_vars['h']['uid']; ?>
"><i class='rank r<?php echo $this->_tpl_vars['k']+1; ?>
'></i><?php echo $this->_tpl_vars['h']['username']; ?>
</a>
					<span><?php echo $this->_tpl_vars['h']['accept']; ?>
</span>
				</li>
			<?php endforeach; endif; unset($_from); ?>
		
			</ul>
		</div>
	</div>
</div>